import request from "@/utils/request";
//分页查询
export function listRoomTypeDiscount(query) {
  return request({
    url: "/roomTypeDiscount/page",
    method: "get",
    params: query
  });
}
//删除折扣
export function deleteRoomTypeDiscount(roomTypeDiscountid) {
  return request({
    url: "/roomTypeDiscount/delete/" + roomTypeDiscountid,
    method: "delete"
  });
}
//添加折扣
export function addRoomTypeDiscount(data) {
  return request({
    url: "/roomTypeDiscount",
    method: "post",
    data: data
  });
}

//修改折扣
export function editRoomTypeDiscount(data) {
  return request({
    url: "/pricingRule",
    method: "put",
    data: data
  });
}
